#ifndef PESTANIAPROP_H_INCLUDED
#define PESTANIAPROP_H_INCLUDED

#include "PestaniaProperties.h"

class PestaniaProp:public PestaniaProperties{
    private:

    public:
    PestaniaProp(const std::string& Rut):PestaniaProperties(Rut)
    {
        this->Boton1.signal_clicked().connect(sigc::mem_fun(*this,&PestaniaProp::on_boton1_clickeado));
    }
    virtual ~PestaniaProp(){}

    virtual void on_boton1_clickeado()
    {
        std::string Key = this->Entry_Key.get_text();
        std::string Value = this->Entry_Value.get_text() ;
        if ( Key == "Path" )
        {
            if ( (Value.find_last_of("/")) != (Value.size()-1))
            {
                Value.append("/");
            }
        }
    this->abmPro.Escribir(Key,Value);
    this->Entry_Key.delete_text(0,this->Entry_Key.get_text_length());
    this->Entry_Value.delete_text(0,this->Entry_Value.get_text_length());
    this->VistaPro.ActualizarVista();
    }

};


#endif // PESTANIAPROP_H_INCLUDED
